//
//  P1014Cantor.cpp
//  Algorithm
//
//  Created by 刘锦程 on 2023/9/21.
//

#include <stdio.h>
#include<iostream>
using namespace std;
int n;
void calc(int N){
  
    int num=0,i=0;
    while(num<N){
        i++;
        num+=i;
    }
    if(i%2==0){
        if(num==N){
            cout<<i<<"/"<<1<<endl;
        }else
        cout<<i-num+N<<"/"<<num-N+1<<endl;
    }else{
        if(num==N){
            cout<<1<<"/"<<i<<endl;
        }else
            cout<<num-N+1<<"/"<<i-num+N<<endl;
    }
   
}
int P1014ans(){
    cin>>n;
    calc(n);
    
    
    return 0;
}
